<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <title>Objekti2</title>
        <script type="text/javascript">
          function nazivAplikacije() {

              //alert(navigator.appCodeName+" "+ navigator.appName+"/ " + navigator.appVersion+" platforma: "+navigator.platform);
              //alert ("Plugins:" + navigator.plugins);
              alert(navigator.userAgent);
          }

          function funkcijaHistory() {
              alert(history.length);
          }

          function resetHistory() {
              history.length = 1;
          }

          function nazad() {
              history.back();
          }
        </script>
    </head>
    <body>
        <form name="f1" method="post">
            <button type="button" id="b1" onclick="nazivAplikacije()">navigator</button>
            <button type="button" onclick="funkcijaHistory()">History</button>
            <button type="button" onclick="resetHistory()">Reset history</button>
            <button type="button" onclick="nazad()">Back</button>
        </form>
    </body>
</html>